package com.zhangliuliu.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhangliuliu.bean.UserBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IUserService extends IService<UserBean>{

  //添加用户
  void  addUser(UserBean userBean);
  //删除用户
  void delUser(int userId);
  //根据用户id修改用户信息
  void updateUser(int userId,String userPwd,String power);
  IPage<UserBean>cutByPower(@Param("pageNo") int pageNo,@Param("pageSize") int pageSize,@Param("power") String power);
   UserBean login(String userName,String userPwd);
   //首页展示所有的用户信息
  IPage<UserBean>cut(@Param("pageNo") int pageNo,@Param("pageSize") int pageSize);
}
